package com.shuiyun.jtt.message.jt808;

import com.shuiyun.jtt.anno.Message;
import com.shuiyun.jtt.enums.JT808;
import com.shuiyun.jtt.message.JTMessage;
import com.shuiyun.jtt.message.mapping.TerminalParamMapping;
import com.shuiyun.jtt.utils.codec.DataType;
import com.shuiyun.jtt.utils.codec.FieldValue;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.util.Map;

/**
 * @author shuiyun
 * @program device-simulator
 * @description 终端参数查询应答
 * @date 2022-05-10 22:25
 **/
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Data
@Message(JT808.查询终端参数应答0x0104)
public class T0104 extends JTMessage {

    @FieldValue(type = DataType.WORD, desc = "应答流水号")
    private int serialNo;

    @FieldValue(type = DataType.MAP,lengthSize = 1,length = 4,clazz = TerminalParamMapping.class)
    private Map<Integer, Object> terminalParam;
}
